<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="author" content="金西振">
    <title></title>
    <style>
    
    </style>
  </head>
  <body>
    <h1>历史记录2</h1>
    <a href="./04 历史记录1.html">返回历史记录1</a>
    <a href="./new.html">去new页面</a>
    <button onclick="back()">返回历史记录1</button>
    <button onclick="go()">去下一个页面</button>
		<script>
			function go() {
        history.go(1);
			}

      function back() {
        // 后退：访问上一条历史记录
        // history.back();
        history.go(-1);
      }
    
    </script>
  </body>
</html>